package cn.edu.tjut.dao.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import cn.edu.tjut.bean.AdminBean;
import cn.edu.tjut.dao.AdminDao;
import cn.edu.tjut.mapper.AdminBeanMapper;

@Repository("AdminInfoDao")
public class AdminInfoDao implements AdminDao {
	@Resource
	private AdminBeanMapper adminMapper;

	@Override
	public AdminBean selectByAdminAccount(String adminAccount) {
		// 根据账号查询管理员信息
		AdminBean adminB = adminMapper.selectByAdminAccount(adminAccount);
		return adminB;
	}

}
